package jy.game.logic;

import jy.game.tools.CommonSettings;
import jy.game.tools.RuntimeData;

public class AttackLogic {
    public static double defenceDescAttack(double defence) {
        if (CommonSettings.MOD_KEY == 1) {
            return 0.92 - Math.pow(0.92, defence * 0.004);
        }
        return 0.9 - Math.pow(0.9, 0.02 * (defence + 50.0));
    }

    public static double defenceDescAttack2(double defence) {
        return Math.min(defence / 120000.0, 0.1 - (RuntimeData.Instance.round - 1) * 0.0004);
    }
}
